﻿<TheOliver_Apps:BaseWindow
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:TheOliver_Apps="clr-namespace:TheOliver.Apps;assembly=TheOliver.Apps"
    xmlns:TheOliver_Controls="clr-namespace:TheOliver.Controls;assembly=TheOliver.Controls.Webcam"
    xmlns:TheOliver_Controls_ShaderEffects="clr-namespace:TheOliver.Controls.ShaderEffects;assembly=TheOliver.Controls.Effects"
    x:Class="TheOliver.Apps.Stereoscope.MainPage"
    mc:Ignorable="d"
    d:DesignHeight="650.524"
    d:DesignWidth="649.048"
    EnableAlwaysOnTop="False"
    ApplicationTitle="Stereoscope"
    EnableFeedback="False"
    EnableSettings="False">

    <Grid
        x:Name="LayoutRoot"
        Background="White">
        <Grid.RowDefinitions>
            <RowDefinition
                Height="0.404*" />
            <RowDefinition
                Height="0.596*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition
                Width="0.495*" />
            <ColumnDefinition
                Width="0.505*" />
        </Grid.ColumnDefinitions>


        <TheOliver_Controls:Webcam
            x:Name="_leftCam"
            Width="320"
            Height="240"
            Margin="0"
            VerticalAlignment="Center"
            d:LayoutOverrides="Height, GridBox"
            HorizontalAlignment="Center" />
        <TheOliver_Controls:Webcam
            x:Name="_rightCam"
            Grid.Column="1"
            Width="320"
            Height="240"
            Margin="0"
            VerticalAlignment="Center"
            d:LayoutOverrides="Height, GridBox"
            HorizontalAlignment="Center" />
        <Rectangle
            x:Name="_leftRectangleWithEffect"
            Fill="#FFF4F4F5"
            Margin="0"
            Stroke="Black"
            Width="480"
            Height="360"
            Grid.ColumnSpan="2"
            Grid.Row="1">
            <Rectangle.Effect>
                <TheOliver_Controls_ShaderEffects:ColorChannelsEffect
                    BlueRatio="0"
                    GreenRatio="0"
                    Input="{Binding VideoBrush, ElementName=_leftCam}" />
            </Rectangle.Effect>
        </Rectangle>
        <Rectangle
            x:Name="_rightRectangleWithEffect"
            Fill="#FFF4F4F5"
            Margin="0"
            Stroke="Black"
            Width="480"
            Height="360"
            Grid.ColumnSpan="2"
            Grid.Row="1"
            VerticalAlignment="Center"
            HorizontalAlignment="Center">
            <Rectangle.Effect>
                <TheOliver_Controls_ShaderEffects:ColorChannelsEffect
                    RedRatio="0"
                    Input="{Binding VideoBrush, ElementName=_rightCam}"
                    AlphaRatio="0" />
            </Rectangle.Effect>
        </Rectangle>


    </Grid>
</TheOliver_Apps:BaseWindow>
